import requests

class dlt:
         def __init__(self):
                self.seeeion = requests.session()
                self.seeeion.get(url="http://192.168.4.80/TinyShop_v1.7/index.php?con=simple&act=captcha&h=40&w=120&bc=3f4657&c=ffffff")
                url = "http://192.168.4.80/TinyShop_v1.7/index.php?con=admin&act=check"
                data = {"name":"admin","password":"123456","verifyCode":"aaaa"}
                re = self.seeeion.post(url=url,data=data)
                # print(re.text)

         def delete(self,id):
                delete_url="http://192.168.4.80/TinyShop_v1.7/index.php?con=goods&act=goods_del&id=%s"%id
                r = self.seeeion.get(delete_url)
                print(r.text)
                return r
if __name__ == "__main__":
    dlt().delete(30)